package com.chenkaiwei.eurekaclientfeigndemo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DataRemoteService {

    @Autowired
    private DataRemoteClientFeign dataRemoteClientFeign;

    @Autowired
    private DataRemoteClientFeign2 dataRemoteClientFeign2;



    public String dataFromRemoteService(){
        return dataRemoteClientFeign.dataFromRemoteService();
    }

    //没有配fallback的feign方法
    public String dataFromRemoteService2(){
        return dataRemoteClientFeign2.dataFromRemoteService();
    }


}